package com.my.magicApi.annotation;


import com.my.magicApi.annotation.enums.AuthorityGroupEnum;
import com.my.magicApi.annotation.enums.AuthorityTypeEnum;

import java.lang.annotation.*;

/**
 * @Author: Rip
 */
@Documented
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface MagicAuthority {
    /**
     * 权限类型  默认是查询
     * @return
     */
    AuthorityTypeEnum authorityType() default AuthorityTypeEnum.QUERY;
    /**
     * 权限分类  默认是查询
     * @return
     */
    AuthorityGroupEnum[] authorityGroup() default {};
}
